import request from '../../utils/request';

// 商品关注管理相关 API

// 关注商品
export const addProductFollow = (data: any) => {
    return request({
        url: '/member/api/product-follow/add',
        method: 'post',
        data
    });
};

// 检查是否已关注商品
export const checkProductFollow = (params: any) => {
    return request({
        url: '/member/api/product-follow/check',
        method: 'get',
        params
    });
};

// 获取关注商品数量
export const getProductFollowCount = (params: any) => {
    return request({
        url: '/member/api/product-follow/count',
        method: 'get',
        params
    });
};

// 分页查询商品关注列表
export const getProductFollowPage = (params: any) => {
    return request({
        url: '/member/api/product-follow/page',
        method: 'get',
        params
    });
};

// 取消关注商品
export const removeProductFollow = (data: any) => {
    return request({
        url: '/member/api/product-follow/remove',
        method: 'post',
        data
    });
};
